#ifndef _CTIME_T_H_
#define _CTIME_T_H_

#include <time.h>
#include <iostream>
#include <iosfwd>
#include <iomanip>

using namespace std;

class cTime_t
{
	friend ostream& operator<<(ostream& os, const cTime_t& time);
	friend cTime_t operator+ (cTime_t& time1, const cTime_t& time2);

protected:
	int _minute;
	int _seconds;
	int _hour;
	int _printFormat;
	
public:
	cTime_t();
	cTime_t(const cTime_t& mycTime);
	cTime_t(const int& hour,const int& minute, const int& seconds);
	void setCurrentTime();
	bool setPrintFormat(const int &format);
	int getPrintFormat() const;
	bool setTime(const int& hour,const int& minute, const int& seconds);
	const cTime_t& operator= (const cTime_t & other);
	int getHour() const;
	int getSeconds() const;
	int getMinutes() const;

	static bool legalTime(const int& hour,const int& minute, const int& seconds);
};

#endif //_CTIME_T_H_